<div class="double-11-page">
	
	<div class="double_11_banner_cat_1 double_11_banner_cat">
		
	</div>
	
	<div class="cat_goodlist_content_1">
	    <div class="container">
	    	
	        <div class=" double_11_goodlist">
	            <div class="body row">
	                <?php foreach ($home_goods as $good): ?>
	                    <?php include $this->getViewFile('../lib/double_11_goodlist'); ?>
	                <?php endforeach; ?>
	            </div>
	            <div class="clearfix"></div>
	            <div class="pager" id="pager">
	                <?php echo $pages ?>
	            </div>
	        </div>
	    </div>
	    <div class="clear"></div>
    </div>
    
    <div class="double_11_footer">
    	<div class="container">
    	<div class="col-md-12">
	    	<a href="<?php echo $this->createUrl('/front/index/tmall');?>">
	    		<img class="double_11_footer_frist" alt="" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/footer_tmall.jpg">
	    	</a>
	    	
	    	<a href="<?php echo $this->createUrl('/front/index/qing');?>">
	    		<img class="double_11_footer_last" alt="" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/double-11/footer_qing.png">
	    	</a>
    	</div>
    	</div>
    </div>
</div>
<script>
//2014-10-15 10:00:00 转时间戳
function js_strto_time(str_time){
    var new_str = str_time.replace(/:/g,'-');
    new_str = new_str.replace(/ /g,'-');
    var arr = new_str.split("-");
    var datum = new Date(Date.UTC(arr[0],arr[1]-1,arr[2],arr[3]-8,arr[4],arr[5]));
    return strtotime = datum.getTime();
}
//时间戳转  2014-10-15 10:00:00
function js_date_time(unixtime) {
    var timestr = new Date(parseInt(unixtime));
    var datetime = timestr.toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");
    return datetime;
}
//刷新倒计时
function refs_time(){
	var time 		= (new Date()).valueOf();
	var double11 	= js_strto_time('2014-11-10 10:00:00');
	var countdown 	= parseInt((double11 - time) / 1000);
	var hour		= parseInt(countdown / 3600);
	var minute		= parseInt((countdown - parseInt(countdown / 3600 ) * 3600) / 60);
	var second		= parseInt((countdown - parseInt(countdown / 3600 ) * 3600) % 60);

	$('#countdown_hour').html(hour);
	$('#countdown_minute').html(minute);
	$('#countdown_second').html(second);
	//alert(hour + "@@" + minute + "##" +second);
}
//隐藏头部Banner
function top_banner_small(){
	$('.double_11_top_banner').addClass('small_banner');
	$('.countdown').hide();
	$('.close_banner').hide();
}

$('.close_banner').click(function(){
	top_banner_small();
});


//var strtime 	= js_date_time(time);


$(document).ready(function() {
	var ref_time_num = setInterval("refs_time()",1000);
	setTimeout("top_banner_small()",15000);
	setTimeout(function(){clearInterval(ref_time_num);},15000);
});






</script>